package io.leo.leoui.toasts;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.res.ColorStateList;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Toast;

import io.leo.leoui.R;

/**
 * 正确操作时弹出的Toast
 */
public class CorrectToast extends ToastTemplate {

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @SuppressLint("ResourceAsColor")
    public CorrectToast(Context context,String msg) {
        super(context,msg);
        getView().setBackgroundTintList(ColorStateList.valueOf(0xff59b134));
        setDrawableLeft(R.drawable.ic_correct);
    }

}
